﻿namespace Ids4.Api.Models.Vos.Admin.Consent
{
    public class ConsentVo : ConsentPostInfo
    {
        /// <summary>
        /// 客户端名称
        /// </summary>
        public string ClientName { get; set; } = "";
        /// <summary>
        /// 客户端Url
        /// </summary>
        public string ClientUrl { get; set; } = "";
        /// <summary>
        /// 客户端Logo
        /// </summary>
        public string ClientLogoUrl { get; set; } = "";
        /// <summary>
        /// 客户端描述
        /// </summary>
        public string Description { get; set; } = "";
        /// <summary>
        /// 是否记住选择
        /// </summary>
        public bool RememberConsent { get; set; }
        //public bool AllowRememberConsent { get; set; }
        /// <summary>
        /// IdentityScopes
        /// </summary>
        public IEnumerable<ScopeVo> IdentityScopes { get; set; } = new List<ScopeVo>();
        /// <summary>
        /// ApiScopes
        /// </summary>
        public IEnumerable<ScopeVo> ApiScopes { get; set; } = new List<ScopeVo>();
    }

    /// <summary>
    /// ConsentPostInfo
    /// </summary>
    public class ConsentPostInfo
    {
        /// <summary>
        /// 选中的项
        /// </summary>
        public IEnumerable<string> ScopesConsented { get; set; } = new List<string>();
        /// <summary>
        /// ReturnUrl
        /// </summary>
        public string ReturnUrl { get; set; } = "";
        /// <summary>
        /// 是否同意
        /// </summary>
        public string Button { get; set; } = "";
    }
}
